# 外部引用都放在extension包
from flask_sqlalchemy import SQLAlchemy

# 使用sqlalchemy连接
db = SQLAlchemy()

import pymysql
from flask_cors import CORS


# mydb = pymysql.connect(
#     host="localhost",
#     user="root",
#     password="123456",
#     database="library_database"
# )

# # 以字典返回数据
# mycursor = mydb.cursor(cursor=pymysql.cursors.DictCursor)


